<template>
<h1>EL-下拉选框</h1>
  <el-select placeholder="请选择你喜欢的城市" style="width: 50%" v-model="city">
    <el-option label="北京" value="bj"></el-option>
    <el-option label="天津" value="tj"></el-option>
    <el-option label="太原" value="ty"></el-option>
    <el-option label="珠海" value="zh"></el-option>
  </el-select>
  <h4>你选择的城市是{{city}}</h4>
</template>

<script setup>
import {ref} from "vue";

const city=ref('ty')
</script>


<style scoped>

</style>